﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace ETC.DLEDLightingSystemPlus.Models
{
    public class ICLightModel:Bandit.UI.MVVM.NotifyObject
    {

        private string _ICNumber;

        public string ICNumber
        {
            get { return _ICNumber; }
            set { 
                _ICNumber = value; 
                OnPropertyChanged(nameof(ICNumber));
            }
        }

        private int _ForegroundLightValue;
        public int ForegroundLightValue
        {
            get { return _ForegroundLightValue; }
            set
            {
                _ForegroundLightValue = value;
                OnPropertyChanged(nameof(ForegroundLightValue));
            }
        }

        private string _ForegroundRealityCurrentValue;
        /// <summary>
        /// 前景实际电流值
        /// </summary> 
        public string ForegroundRealityCurrentValue
        {
            get { return _ForegroundRealityCurrentValue; }
            set
            {
                _ForegroundRealityCurrentValue = value;
                OnPropertyChanged("ForegroundRealityCurrentValue");
            }
        }

        private int _BackgroundLightValue;

        public int BackgroundLightValue
        {
            get { return _BackgroundLightValue; }
            set
            {
                _BackgroundLightValue = value;
                OnPropertyChanged(nameof(BackgroundLightValue));
            }
        }

        private string _BackgroundRealityCurrentValue;
        /// <summary>
        /// 背景实际电流值
        /// </summary>
        public string BackgroundRealityCurrentValue
        {
            get { return _BackgroundRealityCurrentValue; }
            set
            {
                _BackgroundRealityCurrentValue = value;
                OnPropertyChanged("BackgroundRealityCurrentValue");
            }
        }
        public ICLightModel()
        {

        }
        public ICLightModel(string icNumber,int foregroundLightValue,int backgroundLightValue)
        {
            this.ICNumber = icNumber;
            this.ForegroundLightValue= foregroundLightValue;
            this.BackgroundLightValue= backgroundLightValue;
        }
    }
}
